import request from "@/utils/request";
import ConstTable from './ConstTable'

// 获取打印配置信息
export function getPrintConfigInfo(id)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintConfig/${id}`,
        method: "GET"
    });
}

// 获取打印配置列表
export function getPrintConfigList(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintConfig`,
        method: "GET",
        data
    });
}

// 添加打印配置
export function createPrintConfig(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintConfig`,
        method: "POST",
        data
    });
}

// 更新打印配置
export function updatePrintConfig(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintConfig/${data.id}`,
        method: "PUT",
        data
    });
}

// 删除打印配置
export function delPrintConfig(id)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintConfig/${id}`,
        method: "DELETE"
    });
}

// 批量删除打印配置
export function delPrintConfigBatch(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/PrintConfig/BatchRemove`,
        method: 'POST',
        data
    })
}